package com.zhbit.Service.impl;

import java.util.List;

import com.zhbit.DAO.CommentDao;
import com.zhbit.Service.CommentService;
import com.zhbit.table.Comment;

public class CommentServiceImpl implements CommentService{
private CommentDao commentDao;
	/**
 * @return the commentDao
 */
public CommentDao getCommentDao() {
	return commentDao;
}
/**
 * @param commentDao the commentDao to set
 */
public void setCommentDao(CommentDao commentDao) {
	this.commentDao = commentDao;
}
	/**
 * @return the commentdao
 */

	@Override
	public void addcomment(Comment comment) {
		// TODO Auto-generated method stub
		 commentDao.addcomment(comment);
	}
	@Override
	public List<Comment> findAll(int id) {
		// TODO Auto-generated method stub
		return commentDao.findAll(id);
	}

}
